# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=kiwix-desktop
pkgver=2.2.2
pkgrel=0
pkgdesc="Offline Wikipedia reader"
url="https://github.com/kiwix/kiwix-desktop"
# ppc64le, s390x and riscv64 blocked by qt5-qtwebengine
arch="all !armhf !ppc64le !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="
	qt5-qtbase-dev
	qt5-qtwebengine-dev
	qt5-qtsvg-dev
	qt5-qtimageformats
	kiwix-lib-dev
	"
source="https://github.com/kiwix/kiwix-desktop/archive/$pkgver/kiwix-desktop-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	qmake-qt5 PREFIX="/usr"
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="
9106232667cf5b379a197273a2b933c697dfde23e240d6ab9adb0a4dc5f9eba576497ea10b495a7f2f325e11fb6432996bb9f97f1940d420bf77acda9b7418c5  kiwix-desktop-2.2.2.tar.gz
"
